﻿using System;
using System.Collections.Generic;
using Lidgren.Network;

namespace NetBrick.Server
{
    public interface IServer
    {
        BasePeer GetPeer(NetConnection connection);
        void BroadcastPacket(ushort packetCode, Object packetData, NetDeliveryMethod deliveryMethod);
        void SendPacket(ushort packetCode, Object packetData, BasePeer peer, NetDeliveryMethod deliveryMethod);
        void SendPacket(ushort packetCode, Object packetData, List<BasePeer> peers, NetDeliveryMethod deliveryMethod);
        void AddPacketHandler(ushort packetCode, PacketHandler packetHandler);
    }
}